package com.warren.biz.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.warren.biz.entity.InStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author warren
 * @since 2021-04-20
 */
@Repository
public interface InStockMapper extends BaseMapper<InStock> {

    /**
     * 分页查询物资
     * @param page
     * @param queryWrapper
     * @return
     */
    IPage<InStock> findInStockList(Page<InStock> page, @Param(Constants.WRAPPER) QueryWrapper<InStock> queryWrapper);
}
